//
//  Contact.m
//  OC05_数组,字典,集合
//
//  Created by dllo on 15/12/4.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Contact.h"

@implementation Contact

- (instancetype)initWithName:(NSString *)name
                 phoneNumber:(NSString *)phoneNumber {
    self = [super init];
    if (self) {
        _name = name;
        _phoneNumber = phoneNumber;
        
        /** 根据名字, 可以得到组名 */
        _group = [name substringToIndex:1];
    }
    return self;
}

- (void)information {
    NSLog(@"%@,%@,%@,%@,%@,%ld", _name, _sex, _phoneNumber, _address, _group, _age);
}














@end
